home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / ext / standard / php_array.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-25  |  3.4 KB  |  104 lines

  1. /* 
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Andi Gutmans <andi@zend.com>                                |
  16.    |          Zeev Suraski <zeev@zend.com>                                |
  17.    |          Rasmus Lerdorf <rasmus@php.net>                             |
  18.    |          Andrei Zmievski <andrei@ispi.net>                           |
  19.    +----------------------------------------------------------------------+
  20. */
  21.  
  22. /* $Id: php_array.h,v 1.17 2000/10/25 17:40:10 andrei Exp $ */
  23.  
  24. #ifndef PHP_ARRAY_H
  25. #define PHP_ARRAY_H
  26.  
  27. PHP_MINIT_FUNCTION(array);
  28. PHP_MSHUTDOWN_FUNCTION(array);
  29.  
  30. PHP_FUNCTION(ksort);
  31. PHP_FUNCTION(krsort);
  32. PHP_FUNCTION(natsort);
  33. PHP_FUNCTION(natcasesort);
  34. PHP_FUNCTION(asort);
  35. PHP_FUNCTION(arsort);
  36. PHP_FUNCTION(sort);
  37. PHP_FUNCTION(rsort);
  38. PHP_FUNCTION(usort);
  39. PHP_FUNCTION(uasort);
  40. PHP_FUNCTION(uksort);
  41. PHP_FUNCTION(array_walk);
  42. PHP_FUNCTION(count);
  43. PHP_FUNCTION(end);
  44. PHP_FUNCTION(prev);
  45. PHP_FUNCTION(next);
  46. PHP_FUNCTION(reset);
  47. PHP_FUNCTION(current);
  48. PHP_FUNCTION(key);
  49. PHP_FUNCTION(min);
  50. PHP_FUNCTION(max);
  51. PHP_FUNCTION(in_array);
  52. PHP_FUNCTION(extract);
  53. PHP_FUNCTION(compact);
  54. PHP_FUNCTION(range);
  55. PHP_FUNCTION(shuffle);
  56. PHP_FUNCTION(array_multisort);
  57. PHP_FUNCTION(array_push);
  58. PHP_FUNCTION(array_pop);
  59. PHP_FUNCTION(array_shift);
  60. PHP_FUNCTION(array_unshift);
  61. PHP_FUNCTION(array_splice);
  62. PHP_FUNCTION(array_slice);
  63. PHP_FUNCTION(array_merge);
  64. PHP_FUNCTION(array_merge_recursive);
  65. PHP_FUNCTION(array_keys);
  66. PHP_FUNCTION(array_values);
  67. PHP_FUNCTION(array_count_values);
  68. PHP_FUNCTION(array_reverse);
  69. PHP_FUNCTION(array_pad);
  70. PHP_FUNCTION(array_flip);
  71. PHP_FUNCTION(array_rand);
  72. PHP_FUNCTION(array_unique);
  73. PHP_FUNCTION(array_intersect);
  74. PHP_FUNCTION(array_diff);
  75. PHP_FUNCTION(array_sum);
  76.  
  77. HashTable* php_splice(HashTable *, int, int, zval ***, int, HashTable **);
  78. int multisort_compare(const void *a, const void *b);
  79.  
  80. typedef struct {
  81.     int *multisort_flags[2];
  82.     int (*compare_func)(zval *result, zval *op1, zval *op2);
  83. } php_array_globals;
  84.  
  85. #ifdef ZTS
  86. #define ARRAYLS_D php_array_globals *array_globals
  87. #define ARRAYLS_DC , ARRAYLS_D
  88. #define ARRAYLS_C array_globals
  89. #define ARRAYLS_CC , ARRAYLS_C
  90. #define ARRAYG(v) (array_globals->v)
  91. #define ARRAYLS_FETCH() php_array_globals *array_globals = ts_resource(array_globals_id)
  92. extern int array_globals_id;
  93. #else
  94. #define ARRAYLS_D
  95. #define ARRAYLS_DC
  96. #define ARRAYLS_C
  97. #define ARRAYLS_CC
  98. #define ARRAYG(v) (array_globals.v)
  99. #define ARRAYLS_FETCH()
  100. extern php_array_globals array_globals;
  101. #endif
  102.  
  103. #endif /* PHP_ARRAY_H */
  104.